import { InputType } from '@/utils';

export const searchConfig: PageConfig = {
    items: [
        {
            itemType: 'text',
            modelKey: 'supplierCode',
            elInputProps: {
                placeholder: '请输入供应商编码'
            },
            columnProps: {
                label: '供应商编码'
            },
            validFormatType: InputType.NUMERIC_ALPHABET_SYMBOLS
        },

        {
            itemType: 'text',
            modelKey: 'materialCode',
            elInputProps: {
                placeholder: '请输入物料编码'
            },
            columnProps: {
                label: '物料编码'
            },
            validFormatType: InputType.NUMERIC_ALPHABET_SYMBOLS
        },

        {
            itemType: 'text',
            modelKey: 'materialName',
            elInputProps: {
                placeholder: '请输入物料名称'
            },
            columnProps: {
                label: '物料名称'
            }
        },
        {
            itemType: 'text',
            modelKey: 'supplierName',
            elInputProps: {
                placeholder: '请输入供应商名称'
            },
            columnProps: {
                label: '供应商名称'
            }
        },
        {
            itemType: 'text',
            modelKey: 'creator',
            elInputProps: {
                placeholder: '请输入创建人'
            },
            columnProps: {
                label: '创建人'
            }
        },

        {
            itemType: 'date',
            modelKey: 'createTime',
            dateRange: true,
            elDatePickerProps: {
                type: 'daterange',
                startPlaceholder: '开始时间',
                rangeSeparator: '-',
                endPlaceholder: '结束时间'
            },
            columnProps: {
                label: '创建日期'
            }
        }
    ]
};
